﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.Seven.Models;

namespace WMSProject.ChuBoWen
{
    /// <summary>
    /// 单位管理
    /// </summary>
    public interface IUnitsManagerRepository : IApplicationService
    {
        /// <summary>
        /// 获取单位管理信息
        /// </summary>
        /// <param name="unitNumber">单位编码</param>
        /// <param name="unitName">单位名称</param>
        /// <returns>返回单位管理信息的泛型集合</returns>
        Task<InterSelect<object>> GetUnitsManagerList(string? unitNumber, string? unitName, int pageIndex, int pageSize);

        /// <summary>
        /// 新增单位
        /// </summary>
        /// <param name="unitsManager"></param>
        /// <returns></returns>
        Task<int> AddUnitsManager(UnitsManager unitsManager);

        /// <summary>
        /// 删除单位
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteUnitsManager(int id);

        /// <summary>
        /// 获取单位
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<UnitsManager> GetUnitsManager(int id);

        /// <summary>
        /// 修改单位
        /// </summary>
        /// <param name="unitsManagerDTO"></param>
        /// <returns></returns>
        Task<int> UpdateUnitsManager(UnitsManagerDTO unitsManagerDTO);
    }
}
